<?php
namespace app\index\controller;

use app\BaseController;
use think\facade\View;
use app\index\model\Article as Art;

class Article extends Front
{
    public function index()
    {
    	$article = Art::find(1);
        View::assign(get_defined_vars());
        return View::fetch('index');
    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
